<?php
namespace app\home\controller;

use app\common\controller\Cron\CronServer;
use app\common\controller\Home;
use think\facade\View;
use app\common\model\User;

class Cron extends Home{

    /*
     *  统计分红(每小时一次)
     * */
    public function staticBonusCron(){
        $cronServer = new CronServer();
        $res = $cronServer->staticBonusCron();
        if($res){
            exit('success');
        }
        exit('fail');
    }

    /*
     * 发放分红(10分钟一次)
     * */
    public function divideBonusCron(){
        $cronServer = new CronServer();
        $res = $cronServer->divideBonusCron();
        if($res){
            exit('success');
        }
        exit('fail');
    }

    /*
     * 查询提现打款结果(5分钟一次)
     * */
    public function cashTranferResult(){
        $cronServer = new CronServer();
        $res = $cronServer->cashTranferResult();
        if($res){
            exit('success');
        }
        exit('fail');
    }

    /*
    * 查询质押/解压打款结果(5分钟一次)
    * */
    public function pledgeTranferResult(){
        $cronServer = new CronServer();
        $res = $cronServer->pledgeTranferResult();
        if($res){
            exit('success');
        }
        exit('fail');
    }


}